package io.renren.modules.weldingmachinehisdata.service.impl;

import io.renren.modules.welderunnormal.entity.WelderunnormalEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.weldingmachinehisdata.dao.WeldingmachineHisdataDao;
import io.renren.modules.weldingmachinehisdata.entity.WeldingmachineHisdataEntity;
import io.renren.modules.weldingmachinehisdata.service.WeldingmachineHisdataService;
@Service("weldingmachineHisdataService")
public class WeldingmachineHisdataServiceImpl extends ServiceImpl<WeldingmachineHisdataDao, WeldingmachineHisdataEntity> implements WeldingmachineHisdataService {

    @Autowired
    WeldingmachineHisdataDao weldingmachineHisdataDao;
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<WeldingmachineHisdataEntity> page = this.page(
                new Query<WeldingmachineHisdataEntity>().getPage(params),
                new QueryWrapper<WeldingmachineHisdataEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<WelderunnormalEntity> getwmhisdata(String cncName, String createDate) {
        return weldingmachineHisdataDao.getwmhisdata(cncName,createDate);
    }

}